<?php 
include("../includes/config.php");
include("../includes/class/user.class.php");

	$user = new User(); 
	$login = $_POST['login'];
	if($user->userExist($login))
		echo 1;
	else
		echo 0;
?>
